package com.tanchengjin.admin.modules.cms.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * create by  pojo
 *
 * @author TanChengjin
 * @since v1.0.0
 * @version v1.0.0
 */
//@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class ArticleComment implements Serializable {

    private static final long serialVersionUID = 1791082720232008134L;

    private Integer id;
    /**
     * 用户id
     */
    private Long uid;
    /**
     * 文章id
     */
    private Long aid;
    private String ip;
    /**
     * 评论/答复内容
     */
    private String content;
    /**
     * 上级ID，答复ID
     */
    private Integer parentId;

    private String title;

    private int isAnswer;
    /**
     * 区分哪个管理员答复
     */
    private Long adminId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedAt;
    /**
     * 用于软删除
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date deletedAt;


    public Integer getId()
    {
        return this.id;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Long getUid()
    {
        return this.uid;
    }

    public void setUid(Long uid)
    {
        this.uid = uid;
    }

    public Long getAid()
    {
        return this.aid;
    }

    public void setAid(Long aid)
    {
        this.aid = aid;
    }

    public String getIp()
    {
        return this.ip;
    }

    public void setIp(String ip)
    {
        this.ip = ip;
    }

    public String getContent()
    {
        return this.content;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    public Integer getParentId()
    {
        return this.parentId;
    }

    public void setParentId(Integer parentId)
    {
        this.parentId = parentId;
    }

    public Long getAdminId()
    {
        return this.adminId;
    }

    public void setAdminId(Long adminId)
    {
        this.adminId = adminId;
    }

    public Date getCreatedAt()
    {
        return this.createdAt;
    }

    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt()
    {
        return this.updatedAt;
    }

    public void setUpdatedAt(Date updatedAt)
    {
        this.updatedAt = updatedAt;
    }

    public Date getDeletedAt()
    {
        return this.deletedAt;
    }

    public void setDeletedAt(Date deletedAt)
    {
        this.deletedAt = deletedAt;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getIsAnswer() {
        return isAnswer;
    }

    public void setIsAnswer(int isAnswer) {
        this.isAnswer = isAnswer;
    }
}